package entity

import "fmt"

// VisitorEntity 访问记录
type VisitorEntity struct {
	BaseModule
}

// TableName 自定义表名
func (u VisitorEntity) TableName() string {
	return "dl_visit"
}

func (u VisitorEntity) EntityNameWithAlias(alias string) string {
	return fmt.Sprintf("%s as %s", u.TableName(), alias)
}
